home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / SecalDemo / Inc / devices / narrator.inc < prev    next >
Text File  |  1998-06-24  |  2KB  |  96 lines

  1. include "inc/exec/io.inc";
  2.  
  3. def NDB_NEWIORB = 0;
  4. def NDB_WORDSYNC = 1;
  5. def NDB_SYLSYNC = 2;
  6.  
  7. def NDF_NEWIORB = (1<<NDB_NEWIORB);
  8. def NDF_WORDSYNC = (1<<NDB_WORDSYNC);
  9. def NDF_SYLSYNC = (1<<NDB_SYLSYNC);
  10.  
  11. def ND_NoMem = -2;
  12. def ND_NoAudLib = -3;
  13. def ND_MakeBad = -4;
  14. def ND_UnitErr = -5;
  15. def ND_CantAlloc = -6;
  16. def ND_Unimpl = -7;
  17. def ND_NoWrite = -8;
  18. def ND_Expunged = -9;
  19. def ND_PhonErr = -20;
  20. def ND_RateErr = -21;
  21. def ND_PitchErr = -22;
  22. def ND_SexErr = -23;
  23. def ND_ModeErr = -24;
  24. def ND_FreqErr = -25;
  25. def ND_VolErr = -26;
  26. def ND_DCentErr = -27;
  27. def ND_CentPhonErr = -28;
  28.  
  29. def DEFPITCH = 110;
  30. def DEFRATE = 150;
  31. def DEFVOL = 64;
  32. def DEFFREQ = 22200;
  33. def MALE = 0;
  34. def FEMALE = 1;
  35. def NATURALF0 = 0;
  36. def ROBOTICF0 = 1;
  37. def MANUALF0 = 2;
  38. def DEFSEX = MALE;
  39. def DEFMODE = NATURALF0;
  40. def DEFARTIC = 100;
  41. def DEFCENTRAL = 0;
  42. def DEFF0PERT = 0;
  43. def DEFF0ENTHUS = 32;
  44. def DEFPRIORITY = 100;
  45.  
  46. def MINRATE = 40;
  47. def MAXRATE = 400;
  48. def MINPITCH = 65;
  49. def MAXPITCH = 320;
  50. def MINFREQ = 5000;
  51. def MAXFREQ = 28000;
  52. def MINVOL = 0;
  53. def MAXVOL = 64;
  54. def MINCENT = 0;
  55. def MAXCENT = 100;
  56.  
  57. struct narrator_rb is
  58.   message:IOStdReq;
  59.   rate:uword;
  60.   pitch:uword;
  61.   mode:uword;
  62.   sex:uword;
  63.   ch_masks:ulong;
  64.   nm_masks:uword;
  65.   volume:uword;
  66.   sampfreq:uword;
  67.   mouths:ubyte;
  68.   chanmask:ubyte;
  69.   numchan:ubyte;
  70.   flags:ubyte;
  71.   F0enthusiasm:ubyte;
  72.   F0perturb:ubyte;
  73.   F1adj:byte;
  74.   F2adj:byte;
  75.   F3adj:byte;
  76.   A1adj:byte;
  77.   A2adj:byte;
  78.   A3adj:byte;
  79.   articulate:ubyte;
  80.   centralize:ubyte;
  81.   centphon:ulong;
  82.   AVbias:byte;
  83.   AFbias:byte;
  84.   priority:byte;
  85.   pad1:byte;
  86. ;
  87.  
  88. struct mouth_rb is
  89.   voice:narrator_rb;
  90.   width:ubyte;
  91.   height:ubyte;
  92.   shape:ubyte;
  93.   sync:ubyte;
  94. ;
  95.  
  96.